package cn.itcast.service;

import cn.itcast.domain.Member;
import cn.itcast.entity.PageResult;
import cn.itcast.entity.QueryPageBean;

import java.util.List;
import java.util.Map;

public interface MemberService {

    //根据手机号查询是否是会员
    Member findByTelephone(String telephone);
    //注册会员
    void insert(Member member);

    List<Integer> findMemberCountByMonths(List<String> months);

    void insertMember(Member member);

    Member findMemberById(Integer id);

    PageResult findMemberByPage(QueryPageBean queryPageBean);

    void deleteMember(Integer id);

    void updateMember(Member member);

    List<Map<String, Object>> findGenderCount();

    List<Map<String, Object>> findAgeCount();
}
